<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>渠道申请查询</title>
<link href="../css/mq.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">	
	function GetFocus(){   
		if(event.keyCode==13)   
		{ 
		document.getElementById("sear").click();   
		return false;   
		}  
	} 
	function add(){
		window.location.href = "addProblem.do";
	}	
	function search(){
		window.location.href = "getSearchProblemList.do?keyWordBack="+document.getElementById("keyWordBack").value;
	}
	function edit(id){
		var epage = '<s:property value="page"/>';
		url = "modifyProblem.do?scId1=" + id +"&page=" +epage;
		window.location.href = url;
	}
	function del(){
		document.problemform.action = "deleteProblem.do";
		document.problemform.submit();
	}
	
	function checkDel(){
		var checkboxs = document.getElementsByName("chb");
		for(var i=0;i<checkboxs.length;i++)
	    {
	      if(checkboxs[i].checked){
	      	  if(confirm("确定要删除选中记录么?")){
					document.problemform.action = "deleteProblem.do";
					document.problemform.submit();		
					return false; 
	      	  }else{
	      	  		return false; 
	      	  }
	      }
	    }
	    alert("请至少选择一项需要删除的条目!");
	    return false;  
    }
    
    function Del(id){
      var delurl;
	  if(confirm("确定要删除选中记录么?")){
	    delurl = 'deleteProblemSingle.do?id='+id;
	  	location.href=delurl;
	  }else{
	    return false;
	  }
	}
</script>
</head>

<body>

<div id="write">
<s:form name="applicationform" action="getApplicationList" method="post">
 <h4>渠道申请查询</h4>
   
    <table width="99%" border="0" cellspacing="1" cellpadding="2" class="TableStyle">

  <tr class="TrTitleBg-2">
    <td width=8% align = "center">序号</td>
    <td width=15% align = "center">公司名</td>
    <td width=15% align = "center">公司电话</td>
    <td width=15% align = "center">联系人</td>
    <td width=30% align = "center">地址</td>
    
	<!--
    <td width=20% align = "center">所属分类</td>
	-->
    <td width=10% align = "center">查看详情</td>
  </tr>
    
 <%int i=1; %>
  <s:iterator value="applications" id="st">
   <tr class="TrWhiteBg"> 
    
	<td width=8% align = "center">
		<%=i++%>
	</td>
	<td width=15% align = "center">
		<a href='viewApplication.do?id=<s:property value="id"/>'><s:property value="companyName" /></a>
	</td>
	<td width=15% align = "center">
		<s:property value="telephone" />
	</td>
	<td width=15% align = "center">
		<s:property value="contact" />
	</td>
	<td width=15% align = "center">
		<s:property value="address" />
	</td>

	<!-- 
	<td width=35% align = "center">
		<a href='editCategory.do?id=<s:property value="id"/>'><s:property value="scId" /></a>
	</td>
	 -->
	 <td width=20% align = "center">
		<a href='viewApplication.do?id=<s:property value="id"/>'>详情</a>
	</td>
 </tr>
 </s:iterator> 
</table>    	
</s:form>
</div>

</body>
</html>

